package cn.manter.org.domain;


import cn.manter.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: TODO
 * @Author: Mr.Zhao
 * @Version: 1.0
 * @Date:  2022/6/21 0021 19:37
 */
@Data
public class Department extends BaseDomain {

    // 部门编号
    private String sn;
    // 部门名称
    private String name;
    //
    private String dirPath;
    private Integer state;
    private Long managerId;
    private Long parentId;

    private Employee manager;

    private Department parent;

    // 子部门属字段
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
